package com.hw.dagl.model;

import java.text.SimpleDateFormat;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "SYS_USER_LOG", schema = "HWBIGDATA")
public class Sys_User_Log implements java.io.Serializable{

	private String logid;//	 VARCHAR2(20)	N			日志编号
	private String yhdh;//	 VARCHAR2(32)	N			用户代号
	private String ip;//	 VARCHAR2(50)	N			用户登录机器IP
	private String optype;//	VARCHAR2(50)	N			操作类型 0:登录 1:新增 2:修改 3:查询 4:删除 9：登出	
	private String modelname;//	VARCHAR2(50)	N			模块名称
	private String methodname;//	VARCHAR2(50)	Y			ACTION名称
	private String methoddesc;//	VARCHAR2(200)	Y			ACTION描述
	private String url;//   	VARCHAR2(255)	Y			URL地址
	private  Date dateTime;
	private String xm;// 用户姓名
	private Date dateTimeStart;
	private Date dateTimeEnd;
	private String detailisnot;
	private String hphm;
	private String hpzl;
	private String lsh;
	private String xh;
	private String clsbdh;
	private String clpp1;
	private String syr;
	private String ywmc;
	private String tpurl;
	private String optypemc; //操作类型名称
	private String hphmmc; //操作类型名称
	private String ywlx;
	private String ywyy;
	
	@Id
	@Column(name = "LOGID", nullable = false, length = 20)
	public String getLogid() {
		return logid;
	}
	public void setLogid(String logid) {
		this.logid = logid;
	}
	@Column(name = "YHDH", nullable = false, length = 32)
	public String getYhdh() {
		return yhdh;
	}
	public void setYhdh(String yhdh) {
		this.yhdh = yhdh;
	}
	@Column(name = "IP", nullable = false, length = 50)
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	
	public Date getDateTime() {
		return dateTime;
	}
	public void setDateTime(Date dateTime) {
		this.dateTime = dateTime;
	}
	@Column(name = "OPTYPE", nullable = false, length = 50)
	public String getOptype() {
		return optype;
	}
	public void setOptype(String optype) {
		this.optype = optype;
	}
	@Column(name = "MODELNAME", nullable = false, length = 50)
	public String getModelname() {
		return modelname;
	}
	public void setModelname(String modelname) {
		this.modelname = modelname;
	}
	@Column(name = "METHODNAME", length = 50)
	public String getMethodname() {
		return methodname;
	}
	public void setMethodname(String methodname) {
		this.methodname = methodname;
	}
	@Column(name = "METHODDESC", length = 200)
	public String getMethoddesc() {
		return methoddesc;
	}
	public void setMethoddesc(String methoddesc) {
		this.methoddesc = methoddesc;
	}
	@Column(name = "URL", length = 255)
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	@Transient
	public String getXm() {
		return xm;
	}
	public void setXm(String xm) {
		this.xm = xm;
	}
	public Date getDateTimeStart() {
		return dateTimeStart;
	}
	public void setDateTimeStart(Date dateTimeStart) {
		this.dateTimeStart = dateTimeStart;
	}
	public Date getDateTimeEnd() {
		return dateTimeEnd;
	}
	public void setDateTimeEnd(Date dateTimeEnd) {
		this.dateTimeEnd = dateTimeEnd;
	}
	@Transient
	public String getDateTimeStartStr() {
		if(dateTimeStart!=null){
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
			return sdf.format(dateTimeStart);
		}
		return "";
	}
	@Transient
	public String getDateTimeEndStr() {
		if(dateTimeEnd!=null){
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
			return sdf.format(dateTimeEnd);
		}
		return "";
	}
	public String getHphm() {
		return hphm;
	}
	public void setHphm(String hphm) {
		this.hphm = hphm;
	}
	public String getHpzl() {
		return hpzl;
	}
	public void setHpzl(String hpzl) {
		this.hpzl = hpzl;
	}
	public String getLsh() {
		return lsh;
	}
	public void setLsh(String lsh) {
		this.lsh = lsh;
	}
	public String getXh() {
		return xh;
	}
	public void setXh(String xh) {
		this.xh = xh;
	}
	public String getTpurl() {
		return tpurl;
	}
	public void setTpurl(String tpurl) {
		this.tpurl = tpurl;
	}
	public String getDetailisnot() {
		return detailisnot;
	}
	public void setDetailisnot(String detailisnot) {
		this.detailisnot = detailisnot;
	}
	public String getOptypemc() {
		return optypemc;
	}
	public void setOptypemc(String optypemc) {
		this.optypemc = optypemc;
	}
	public String getClsbdh() {
		return clsbdh;
	}
	public void setClsbdh(String clsbdh) {
		this.clsbdh = clsbdh;
	}
	public String getClpp1() {
		return clpp1;
	}
	public void setClpp1(String clpp1) {
		this.clpp1 = clpp1;
	}
	public String getSyr() {
		return syr;
	}
	public void setSyr(String syr) {
		this.syr = syr;
	}
	public String getYwmc() {
		return ywmc;
	}
	public void setYwmc(String ywmc) {
		this.ywmc = ywmc;
	}
	public String getHphmmc() {
		return hphmmc;
	}
	public void setHphmmc(String hphmmc) {
		this.hphmmc = hphmmc;
	}
	public String getYwlx() {
		return ywlx;
	}
	public void setYwlx(String ywlx) {
		this.ywlx = ywlx;
	}
	public String getYwyy() {
		return ywyy;
	}
	public void setYwyy(String ywyy) {
		this.ywyy = ywyy;
	}
	
	
}
